<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    
    $router->resource('cars', CarController::class);
    $router->resource('stages', StageController::class);
    $router->resource('config', ConfigController::class);
    $router->resource('draw_lots_config', DrawLotsConfigController::class);
    $router->resource('gold_shop', GoldShopController::class);
    
    $router->resource('card_series', CardSeriesController::class);
    $router->resource('card_series/{serice_id}/cards', CardsController::class);
    
    $router->resource('gifts', GiftController::class);
    $router->resource('gift/{gift_id}/logs', GiftLogController::class);
    
    $router->resource('awards/{series_id}/lists', AwardController::class);
    $router->resource('awards/{series_id}/users', AwardLogController::class);
    
    $router->resource('members', MemberController::class);

    $router->get('card_series_list','CardSeriesController@cardSeriesList');
    
    $router->post('members/delete_user','MemberController@deleteUser');

    $router->resource('merchants', MerchantController::class);

});
